JBoss Community Archive (Read Only)

PicketBox

Simple Authorization

Ideally, you should be using Drools based authorization or XACML based authorization. 

When you have very simple use cases such as testing environments, then you can use the SimpleAuthorizationManager that checks the PicketBoxSubject for the configured roles.

The setter on the SimpleAuthorizationManager is:

/**
     * Set the role names
     *
     * @param roleNames
     */
    public void setRoleNames(List<String> roleNames) {
        this.roleNames = roleNames;
    }
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 12:16:22 UTC, last content change 2012-08-01 15:41:12 UTC.